.class Lcom/estrongs/android/ui/view/ESVideoView$c;
.super Ljava/lang/Object;
.source "ESVideoView.java"

# interfaces
.implements Landroid/media/MediaPlayer$OnVideoSizeChangedListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/estrongs/android/ui/view/ESVideoView;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic a:Lcom/estrongs/android/ui/view/ESVideoView;


# direct methods
.method constructor <init>(Lcom/estrongs/android/ui/view/ESVideoView;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/estrongs/android/ui/view/ESVideoView$c;->a:Lcom/estrongs/android/ui/view/ESVideoView;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onVideoSizeChanged(Landroid/media/MediaPlayer;II)V
    .locals 0

    .line 1
    :try_start_0
    iget-object p2, p0, Lcom/estrongs/android/ui/view/ESVideoView$c;->a:Lcom/estrongs/android/ui/view/ESVideoView;

    invoke-virtual {p1}, Landroid/media/MediaPlayer;->getVideoWidth()I

    move-result p3

    invoke-static {p2, p3}, Lcom/estrongs/android/ui/view/ESVideoView;->a(Lcom/estrongs/android/ui/view/ESVideoView;I)I

    .line 2
    iget-object p2, p0, Lcom/estrongs/android/ui/view/ESVideoView$c;->a:Lcom/estrongs/android/ui/view/ESVideoView;

    invoke-virtual {p1}, Landroid/media/MediaPlayer;->getVideoHeight()I

    move-result p1

    invoke-static {p2, p1}, Lcom/estrongs/android/ui/view/ESVideoView;->c(Lcom/estrongs/android/ui/view/ESVideoView;I)I

    .line 3
    iget-object p1, p0, Lcom/estrongs/android/ui/view/ESVideoView$c;->a:Lcom/estrongs/android/ui/view/ESVideoView;

    invoke-static {p1}, Lcom/estrongs/android/ui/view/ESVideoView;->a(Lcom/estrongs/android/ui/view/ESVideoView;)I

    move-result p1

    if-eqz p1, :cond_0

    iget-object p1, p0, Lcom/estrongs/android/ui/view/ESVideoView$c;->a:Lcom/estrongs/android/ui/view/ESVideoView;

    invoke-static {p1}, Lcom/estrongs/android/ui/view/ESVideoView;->b(Lcom/estrongs/android/ui/view/ESVideoView;)I

    move-result p1

    if-eqz p1, :cond_0

    .line 4
    iget-object p1, p0, Lcom/estrongs/android/ui/view/ESVideoView$c;->a:Lcom/estrongs/android/ui/view/ESVideoView;

    invoke-virtual {p1}, Landroid/view/SurfaceView;->getHolder()Landroid/view/SurfaceHolder;

    move-result-object p1

    iget-object p2, p0, Lcom/estrongs/android/ui/view/ESVideoView$c;->a:Lcom/estrongs/android/ui/view/ESVideoView;

    invoke-static {p2}, Lcom/estrongs/android/ui/view/ESVideoView;->a(Lcom/estrongs/android/ui/view/ESVideoView;)I

    move-result p2

    iget-object p3, p0, Lcom/estrongs/android/ui/view/ESVideoView$c;->a:Lcom/estrongs/android/ui/view/ESVideoView;

    invoke-static {p3}, Lcom/estrongs/android/ui/view/ESVideoView;->b(Lcom/estrongs/android/ui/view/ESVideoView;)I

    move-result p3

    invoke-interface {p1, p2, p3}, Landroid/view/SurfaceHolder;->setFixedSize(II)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception p1

    .line 5
    invoke-virtual {p1}, Ljava/lang/Exception;->printStackTrace()V

    :cond_0
    :goto_0
    return-void
.end method
